<div class="portlet">
  <div class="portlet-header">
    <h1><%=t "profiles.new.title"%></h1>
  </div>
  <div class="portlet-content">
   <table>
      <tbody>
        <% form_for(@profile, {:url => contact_profiles_path, :post => true}) do |f| %>        
          <%= f.error_messages %>
          <table>
            <tbody>
              <tr>
                <td>
                  <%= label_tag 'reference', t('activerecord.attributes.profile.reference') %>
                </td>
                <td>
                  <%= text_field_tag 'profile_reference_name','', {:disabled => true, :size => 30} %>
                </td>
                <td >
                  <div id='basic-modal-profile_selector'>
                    <a href='#' class='basic'><%=t('btn_selected')%></a>
                  </div>
                </td>
                <td>
                  <%= hidden_field(:profile, :reference_id)%>
                  <%= hidden_field(:profile, :reference_type) %>
                </td>
              </tr>
              <tr>
                <td>
                  <%= label_tag :excluded, t('activerecord.attributes.profile.excluded') %>
                </td>
                <td>
                  <%= f.check_box :excluded%>
                </td>
              </tr>
            </tbody>
          </table>
          <div class="line-buttons">
            <%= f.submit t('btn_create') %>
          </div>
          <div class="line-links">
            <%= link_to t('btn_back'), profiles_redirect_back_path(contact_profiles_path) %>
          </div>
        <% end %>
      </tbody>
   </table>
  </div>

  <div class="portlet-footer">
  </div>
</div>

<div id="basic-modal-content-profile_selector" style="display:none;">
  <%= render :partial=>'profiles/profiles_selector' %>
</div>
